package com.flexcodejam.vfd.event {

	import com.adobe.cairngorm.control.CairngormEvent;
	import com.flexcodejam.vfd.vo.*;

	import flash.events.Event;

	public class UserEvent extends CairngormEvent {

		public static var LOGIN:String = "loginUserEvent";
		public static var LOGOUT:String = "logOutEvent";
		public static var SAVE:String = "saveEvent";
		public static var GETALL:String = "getAllUsersEvent";

		public var user:User;

		/**
		 * Constructor.
		 */
		public function UserEvent(type:String,bubbles:Boolean=true,cancelable:Boolean=false)
		{
			super(type,bubbles,cancelable);
		}

     	/**
     	 * Override the inherited clone() method, but don't return any state.
     	 */
		override public function clone() : Event
		{
			var u:UserEvent =new UserEvent(this.type);
			u.user = user;
			return u;
		}
	}
}
